package com.example.eurekaconsumer.controller;

import com.example.eurekaconsumer.api.RemoteService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("hello")
public class HelloController {

    @Resource
    RemoteService service;

    @GetMapping("test")
    public String test() {
        return service.remoteTest();
    }
}
